package com.heima.ssm.service;

import com.heima.ssm.pojo.Permission;
import com.heima.ssm.pojo.Role;

import java.util.List;

/**
 * @author Penguin
 * @create Date 2021/5/6  Time 19:36
 */
public interface IRoleService {
    List<Role> findAll();

    void add(Role role);

    Role findById(int roleId);

    List<Permission> findOtherPermissionByRoleId(int roleId);

    void addPermissionToRole(int roleId, int[] permissionIds);

}
